package com.springboot.mall.service;

import com.github.pagehelper.PageInfo;
import com.springboot.mall.model.entity.Product;
import com.springboot.mall.model.request.AddProductRequest;
import com.springboot.mall.model.request.ProductListRequset;
import com.springboot.mall.model.request.UpdateCategoryRequest;
import com.springboot.mall.model.request.UpdateProductRequest;

import java.util.List;

public interface ProductService {

    void addProduct(AddProductRequest addProductRequest);
    void updateProduct(UpdateProductRequest updateProductRequest);
    void deleteProduct(Integer id);
    void batchUpdateSellStatus(Integer[] ids,Integer sellStatus);
    PageInfo listForAdmin(Integer pageNum, Integer pageSize);
    Product detail(Integer id);
    PageInfo list(ProductListRequset productListRequset);
}
